(function (aopc) {
    aopc.addExpandPage(798, function (get) {
        const Common = get('UtilsCommon', 'Common');
        return {
            expandInit() {
                this.download_qrcode_view = this.getProperty('download_qrcode_view');
                this.img_qrcode = this.getViewProperty(this.download_qrcode_view, 'img_qrcode');
            },
            setInit() {
                let url = window.location.href.replace('userCenter.html', 'download.html');
                url += `&sid=${this.visitUser.sid}`;
                this.img_qrcode.imgUrl = Common.getQrCode(url);
            },
            setSelfHide({ property, e }) {
                const ele = property.getElement();
                if (ele === e.target) property.setIsVisible(false);
            }
        }
    });
})(window.aopc);